<% if error_messages_for('test_type').length > 0 or
      (not flash[:error].nil? and flash[:error].length > 0) then %>
<div class="error">
<%= flash[:error] %>
<%= error_messages_for 'test_type' %>
</div>
<% end %>

<!--[form:test_type]-->
<p><label for="test_type_name">Name</label><br/>
<%= text_field 'test_type', 'name'  %></p>

<p><label for="test_type_description">Description</label><br/>
<%= text_field 'test_type', 'description'  %></p>

<p><label for="test_type_timeout">Timeout (secs)</label><br/>
<input type='text' name='test_type[timeout]' value='<%= @test_type.timeout if defined? @test_type.timeout %>'/></p>

<p><label for="test_type_build_type_id">Build type</label><br/>
<%= collection_select 'test_type', 'build_type_id', @build_types, :id, :title %></p>

<p><label for="test_type_serial_dev1">Serial device 1</label><br/>
<%= text_field 'test_type', 'serial_dev1'  %></p>

<p><label for="test_type_serial_dev2">Serial device 2 (optional)</label><br/>
<%= text_field 'test_type', 'serial_dev2'  %></p>

<p><label for="test_type_virtual_machine">Virtual machine</label><br/>
<table class="noborder">
<tr>
<td><input type="radio" name="test_type[virtual_machine]" value="bochs" checked> Bochs</td>
<td><input type="radio" name="test_type[virtual_machine]" value="qemu"> qEmu</td>
</tr></table></p>

<p><label for="test_type_is_analysis">Test type</label><br/>
<table class="noborder">
<tr>
<td><input type="radio" name="test_type[is_analysis]" value="0" checked> Traffic-light</td>
<td><input type="radio" name="test_type[is_analysis]" value="1"> Analysis</td>
</tr></table></p>

<!--[eoform:test_type]-->

